﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class SiteNavigation_includeShow : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
           
            bd();
        }
    }
    void bd()
    {
        int id = int.Parse(Request["id"]);
        CMSModel.CMSEntities dal = DAL.DBManager.GetCmsEmtity();

        CMSModel.UrlCollect type = dal.UrlCollect.First(x => x.ID == id);
        lblSName.Text = type.SiteName;
        lblSUrl.Text = type.SiteUrl;
        lblSType.Text = type.SiteType;
        lblSMaster.Text = type.SiteMaster;
        lblSTel.Text = type.SiteTel;
        lblSAlexa.Text = type.SiteAlexa;
        txtdescripiton.Text = type.SiteDescription;
        
    }
}